package question3;

import java.awt.GridLayout;

import javax.swing.JApplet;
import javax.swing.JRootPane;

import question3.tp_pile.Pile2;

/**
 * Classe VueApplette - decrivez la classe ici
 * 
 * @author:  (votre nom)
 * @version: (un numero de version ou une date)
 */
public class AppletteCalculette extends JApplet
{

  /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

public void init()
  {
    JRootPane rootPane= this.getRootPane();
    rootPane.putClientProperty( "defeatSystemEventQueueCheck", Boolean.TRUE );

    PileModele<Integer> modele= new PileModele<Integer>( new Pile2<Integer>( 5 ) );
    Controleur controle= new Controleur( modele );
    Vue vue = new Vue( modele );

    setLayout( new GridLayout( 2, 1 ) );
    add( vue );
    add( controle );
    setVisible( true );

  }

}
